package com.ybb.vue.domain.dto;

import com.ybb.vue.entity.BaseEntity;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author ybb
 * @version 1.0
 * @Description TODO
 * @Date 2023/3/30 21:27
 */

@Data
public class AnnouncementSaveDto extends BaseEntity{
    /**
     * 公告标题
     */
    @NotBlank(message = "公告标题不能为空")
    @Length(max = 10,message = "请将公告内容字数控制在10以内")
    private String title;

    /**
     * 公告内容
     */
    @NotBlank(message = "公告内容不能为空")
    @Length(max = 100,message = "请将公告内容字数控制在100以内")
    private String ancementContent;
}
